{% extends "q3demotube/baseq3.html" %}
{% load sorting_tags %}

{% block page_title %}My Demos{% endblock %}
{% block content %}
<table border="1">
<tr>
    {% table_header headers 'th' %}
</tr>
{% for d in demos  %}
<tr>
    <td> {{ d.name }}</td>
    <td> {{ d.demo.name|slice:":30" }}</td>
    <td> {{ d.category.name }}</td>
    <td> {{ d.time_addet.date }}</td>
    <td> {{ d.user.username }}</td>
    <td> {{ d.video_set.count }}</td>
    <td> <a href="/q3demotube/demo/{{ d.id }}/">[$]</a></td>
    <td> <a href="/q3demotube/delete_demo/{{ d.id }}/">[X]</a></td>
</tr>
{% endfor %}
</table>
{% endblock %}

